package com.itheima.youdianda.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("sys_menu")
public class SysMenu implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //父级编号
    private Integer pid;
    //路由名称
    private  String path;
    //组件路径
    private  String component;
    //菜单名称
    private  String title;
    //图标
    private  String icon;
    //是否在菜单中显示 0不显 1显
    private  Integer isShow;
    //是否缓存 0否 1是
    private  Integer isCache;
    //是否外联 0否 1是
    private  Integer isLink;
    //重定向地址
    private  String redirect;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime  create_date;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime  update_date;
    //删除标记
    private Integer delFlag;
    //类型 1菜单 2按钮
    private  Integer type;
    //排序
    private  Double sort;
    //权限标识
    private  String mark;
    //是否为默认数据 null
    private  String defaultData;
    //子级菜单
    @TableField(exist = false)
    private Object children;

    //private List<>


}
